package org.example.operator.impl;

import org.example.operator.Operator;

import java.math.BigDecimal;

import static java.math.BigDecimal.ROUND_HALF_UP;

public class ExponentOperator implements Operator {
    @Override
    public String operate(BigDecimal num1, BigDecimal num2) {
        return num1.pow(num2.intValue()).toString();
    }
}
